package cn.jee.repository;

import cn.jee.entity.Publisher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PublisherRepository extends JpaRepository<Publisher, Long> {
  List<Publisher> findByAddress_Address(String address);

  List<Publisher> findByAddress_Id(Long id);
  List<Publisher> findByAuthors_NameContains(String name);
  List<Publisher> findByAuthors_Books_Name(String name);

}